<ui:composition xmlns="http://www.w3.org/1999/xhtml"
      	xmlns:ui="http://java.sun.com/jsf/facelets"
		xmlns:h="http://java.sun.com/jsf/html"
	  	xmlns:a4j="http://richfaces.org/a4j"
      	xmlns:c="http://java.sun.com/jsp/jstl/core">
      	
	<a4j:outputPanel ajaxRendered="true">
		<h:panelGroup rendered="#{JS_FUNCTION_CALLED}">
			<script>
				#{NAME_JS_FUNCTION_CALLED}
			</script>
		</h:panelGroup>
	</a4j:outputPanel>
</ui:composition>